﻿using System.Reflection;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;

namespace TheWorldOfKongfuEasyMod;

[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
public class Main : BaseUnityPlugin
{
    internal new static ManualLogSource Logger;
    internal static Setting Setting;
    private void Awake()
    {
        Logger = base.Logger;
        Setting = new Setting();
        Setting.Init(Config);
        Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
        Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly());
    }
}

public static class Data
{
    public static bool isAutoBattle;
}